package IO;


import java.nio.charset.Charset;
import java.util.Map;
import java.util.Set;

/**
 * Created by Xiang on 2014/8/19.
 */
public class CharsetTest {
    public static void main(String[] args) {
        Charset charset = Charset.forName("ISO-8859-1");
        Set<String> aliases = charset.aliases();
        for (String alias: aliases) {
            System.out.println(alias);
        }
        Map<String,Charset>  map = Charset.availableCharsets();
        for (String key :map.keySet()){
            System.out.println(key);
        }
    }
}
